        <div class="slide_img">
          <DIV id="idContainer2" class="container">
            <TABLE id="idSlider2" border=0 cellSpacing=0 cellPadding=0>
              <TBODY>
                <TR>
                  <TD class=td_f>
                  <?php 
           		$images = Mage::getModel('imagegallery/imagegallery')->getCollection()
           					->addFieldToFilter('cat_id',array('in'=>'2'))
							->setOrder('post_id', 'asc')
           					->setPageSize(1);
           					
           		Mage::getSingleton('imagegallery/status')->addEnabledFilterToCollection($images);
			?>
							<?php foreach ($images as $image):?>
			<?php if ($image->getNfile()):?>
<a href="<?php echo $image->getLinkurl()?>" target="<?php if ($image->getNewtab()==1){ echo '_blank';}else{echo '_self';}?>"><img src="/image.php?width=694&height=216&cropratio=1.7:1&image=<?php echo Mage::getBaseUrl('media') .$image->getNfile()?>" alt="<?php echo $image->getTitle()?>"  /></a>
			<?php endif;?>
			<?php endforeach;?>
                  </TD>
                </TR>
              </TBODY>
            </TABLE>
           
          </DIV>
        </div>
        
        <div class="column1">
          <div class="this-week-competition">
          <div class="com-top"></div>
          <div class="com-box">
          <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
              <h1 class="c-t1">This weeks competition</h1>
              <div class="white-bg">
                <div class="white-bg-top"></div>
                <div class="white-bg-cen">
              	<?php $header=Mage::getModel('cms/block')->load(6);?>
                <?php echo  $header->getContent();?> 
                <div class="purple-bg">
                <form action="<?php echo $this->getUrl(); ?>competition/index/post/" id="competitionform" method="post" >
                	<?php $poll= Mage::getModel('poll/poll')->load(1);?>
                	
                     <table cellpadding="0" cellspacing="0" width="100%" height="51"><tr><td>
                     <p class="notice"><?php echo $poll->getPollTitle() ?></p></td></tr></table>
                     <div class="purple-div">
                     <div class="p-top"></div>
                     <div class="p-cen">
                     <ul class="radio-option">
                       <?php $answers = Mage::getModel('poll/poll_answer')->getCollection()
           					->addFieldToFilter('poll_id',array('in'=>$poll->getPollId() )); ?>
           				<?php foreach ($answers as $answer):?>
                       <li><label><input name="poll_data" type="radio" value="" /><?php echo $answer->getAnswerTitle()?></label></li>
                       <?php endforeach;?>
                     </ul>
                     <dl>
                        <dt>Your Full Name:<span>*</span></dt>
                        <dd><input type="text" name="name" class="input2 required-entry" value=""/></dd>
                     </dl>
                     <dl>
                        <dt>Your Email Address:<span>*</span></dt>
                        <dd><input type="text" name="email" class="input2 required-entry validate-email" value=""/></dd>
                     </dl>
                     <dl>
                        <dt>Your Telephone Number:<span>*</span></dt>
                        <dd><input type="text" name="telephone" class="input2 required-entry" value=""/></dd>
                     </dl>
                     <p class="confirm"><input name="is_subscribed" type="checkbox" value="1" />Send me The Dome email newsletter every month for FREE <span>*</span></p>
                     <table class="bt-table" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="xinghao">*Information Required </td>
    <td class="bt"><input type="image" src="<?php echo $this->getSkinUrl()?>images/bt-enter-now.png"/></td>
  </tr>
</table>
</div>
<div class="p-bottom"></div>
</div>
</form>
<script type="text/javascript">
		      var orderForm = new VarienForm('competitionform', true);
		    </script>
                 </div>
                 </div>
                <div class="white-bg-bottom"></div>
              </div>
              <?php $header=Mage::getModel('cms/block')->load(7);?>
                <?php echo  $header->getContent();?> 
          </div>
          <div class="com-bottom"></div>
          </div>
        </div>
        <div class="column2"><a href="#" class="banner" style="margin-top:4px;"><img src="<?php echo $this->getSkinUrl()?>images/advert1.png"/></a><a href="#" class="banner"><img src="<?php echo $this->getSkinUrl()?>images/advert2.png"/></a></div>